/**
 * Created by Baggio on 2017-7-3.
 */

layerTools={
    /**
     * layer弹层
     * @param title
     * @param url
     * @param id
     * @param w
     * @param h
     */
    layerShow:function (title,url,id,w,h) {
        layer_show(title,url,w,h);
    },
    /**
     * ayer弹层全屏
     * @param title 标题
     * @param url 调用页面地址
     * @param id
     */
    layerShowFullScreen:function (title,url) {
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    },
    /**
     *
     * @param id
     * @param yourclass
     * @param yourclass
     */
    layerShowDIv:function (id,yourclass) {
        layer.open({
            type: 1,
            area: ['650px', '450px'],
            shade: false,
            title: false,
            skin: 'yourclass',
            content:id
        });
    },
    /**
     * 关闭所有弹窗
     */
    layerCloseAll:function () {
        layer.closeAll();
    }
}

